package org.wxd.bi.api.po.pushlog;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wxd.ann.ShowIndex;
import org.wxd.batis.struct.DbColumn;
import org.wxd.batis.struct.DbTable;
import org.wxd.bi.api.po.BasePush;
import org.wxd.net.web.template.ann.HtmlStyle;

import java.io.Serializable;

/**
 * @author: Troy.Chen(無心道, 15388152619)
 * @version: 2021-09-30 18:04
 **/
@ShowIndex(value = 102)
@DbTable(comment = "角色登录日志")
public class LoginRoleLog extends BasePush implements Serializable {

    private static final long serialVersionUID = 1L;
    private static final Logger log = LoggerFactory.getLogger(LoginRoleLog.class);
    @ShowIndex(value = 3)
    @HtmlStyle("width: 80px")
    @DbColumn(index = true, comment = "区服Id")
    private int serverId;
    @ShowIndex(value = 4)
    @HtmlStyle("width: 140px")
    @DbColumn(index = true, comment = "区服")
    private String serverName;
    @HtmlStyle("width: 180px")
    @DbColumn(index = true, comment = "角色id")
    private long roleId;
    @HtmlStyle("width: 180px")
    @DbColumn(index = true, comment = "角色名字")
    private String roleName;
    @HtmlStyle("width: 200px")
    @DbColumn(index = true, comment = "创建时间")
    private long createTime;
    @HtmlStyle("width: 180px")
    @DbColumn(index = true, comment = "账号id")
    private long userId;
    @HtmlStyle("width: 180px")
    @DbColumn(index = true, comment = "账号")
    private String userName;
    @HtmlStyle("width: 80px")
    @DbColumn(index = true, comment = "用户渠道")
    private String channel;
    @HtmlStyle("width: 140px")
    @DbColumn(comment = "ip地址")
    private String ip;
    @HtmlStyle("width: 140px")
    @DbColumn(comment = "地址")
    private String region;

    public LoginRoleLog() {
    }

    @Override
    public LoginRoleLog setId(long id) {
        super.setId(id);
        return this;
    }

    @Override
    public LoginRoleLog setSaveTime(long saveTime) {
        super.setSaveTime(saveTime);
        return this;
    }

    @Override
    public LoginRoleLog setExpand(String expand) {
        super.setExpand(expand);
        return this;
    }

    public long getRoleId() {
        return roleId;
    }

    public LoginRoleLog setRoleId(long roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getRoleName() {
        return roleName;
    }

    public LoginRoleLog setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public LoginRoleLog setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUserId() {
        return userId;
    }

    public LoginRoleLog setUserId(long userId) {
        this.userId = userId;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public LoginRoleLog setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public int getServerId() {
        return serverId;
    }

    public LoginRoleLog setServerId(int serverId) {
        this.serverId = serverId;
        return this;
    }

    public String getServerName() {
        return serverName;
    }

    public LoginRoleLog setServerName(String serverName) {
        this.serverName = serverName;
        return this;
    }

    public String getChannel() {
        return channel;
    }

    public LoginRoleLog setChannel(String channel) {
        this.channel = channel;
        return this;
    }

    public String getIp() {
        return ip;
    }

    public LoginRoleLog setIp(String ip) {
        this.ip = ip;
        return this;
    }

    public String getRegion() {
        return region;
    }

    public LoginRoleLog setRegion(String region) {
        this.region = region;
        return this;
    }

}
